package com.dc.chat.app.biz.impl;

import com.dc.chat.app.biz.CommonMessageBiz;
import com.dc.chat.app.service.mp.CommonMessageService;
import com.dc.chat.entity.dao.CommonMessage;
import com.dc.chat.entity.to.ResponseBean;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommonMessageImpl implements CommonMessageBiz {
    @Resource
    CommonMessageService commonMessageService;
    @Override
    public ResponseBean<List<CommonMessage>> getCommonMessage() {
        List<CommonMessage> commonMessages = commonMessageService.getBaseMapper().selectList(null);
        return ResponseBean.success("查询群聊聊天记录成功",commonMessages);
    }
}
